import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/auth/oauth/token',
    method: 'post',
    params: data
  })
}
export function loginGitee() {
  return request({
    url: '/auth/oauth/gitee/token',
    method: 'post'
  })
}

export function getInfo(data) {
  return request({
    url: '/auth/oauth/info',
    method: 'post',
    data
  })
}

export function logout(data) {
  return request({
    url: '/auth/oauth/logout',
    method: 'post',
    data
  })
}

